package com.hfjyz.system.depart.dao;

import java.util.List;

import com.hfjyz.base.dao.BaseDao;
import com.hfjyz.base.entity.DepartEntity;

public class DepartDao extends BaseDao<DepartEntity> {

    public DepartDao() {
        super(DepartEntity.class);
    }
    
    @SuppressWarnings("unchecked")
    public List<DepartEntity> listDepart() {
        String hql = "from DepartEntity depart order by depart.id";
        List<DepartEntity> deptList = hibernateTemplate.find(hql);
        
        return deptList;
    }
}
